﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DB_NH.DB_Map.ywxt.ProjectOpening
{
    using NHibernate;
    using NHibernate.Mapping.ByCode;
    using NHibernate.Mapping.ByCode.Conformist;

    using DB_NH.DB_Model.ywxt.ProjectOpening;

    public class ProjectOpenPageSetting_Map : EntityMapping<ProjectOpenPageSetting>
    {
        public ProjectOpenPageSetting_Map()
        {
            Property(x => x.hasJDR, map =>
            {
            });

            Property(x => x.hasKBDD, map =>
            {
            }); 
            
            Property(x => x.hasKBHL, map =>
            {
            });

            Property(x => x.hasKZJ, map =>
            {
            });

            Property(x => x.hasQT, map =>
            {
            });

            Property(x => x.valueJDR, map =>
            {
                map.Length(2000);
            });

            Property(x => x.valueKBDD, map =>
            {
                map.Length(2000);
            });

            Property(x => x.valueKBHL, map =>
            {
                map.Length(2000);
            });

            Property(x => x.valueKZJ, map =>
            {
                map.Length(2000);
            });

            Property(x => x.valueQT, map =>
            {
                map.Length(2000);
            });

            ManyToOne(x => x.Project, map =>
            {
                map.Column("ProjectId");
            });
        }
    }
}
